<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <h1>404</h1>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在</p>
      <a-button type="primary" @click="goHome">返回首页</a-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f6f7;
}

.not-found-content {
  text-align: center;
}

.not-found-content h1 {
  font-size: 120px;
  color: var(--color-text-1);
  margin: 0;
  line-height: 1.2;
}

.not-found-content h2 {
  font-size: 24px;
  color: var(--color-text-2);
  margin: 20px 0;
}

.not-found-content p {
  font-size: 16px;
  color: var(--color-text-3);
  margin-bottom: 40px;
}
</style>